package cc.yaomm.service.basic.controller.business.login.vo;

import cc.yaomm.common.basic.lang.vo.BaseResultVO;
import cc.yaomm.service.basic.service.user.vo.RoutesResultVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Set;

/**
 * Created by XQL on 2021/6/10.
 */
@Data
@ApiModel
public class LoginResultVO extends BaseResultVO {

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("token")
    private String token;

    private Boolean idAdmin;

    @ApiModelProperty("路由（菜单）")
    private List<RoutesResultVO> routers;

    @ApiModelProperty("按钮权限")
    private Set<String> permissions;

    private Set<String> resources;
}
